package com.gzhryc.shared_device.oem.h5.agent.dto.api.v1.cdcz;

import com.gzhryc.common.api.SecurityResponse;
import com.gzhryc.jdbc.annotaion.Column;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class CDCZDeviceInfoResponse extends SecurityResponse<CDCZDeviceInfoResponse.Body> {

    public CDCZDeviceInfoResponse() {
        this.body = new Body();
    }

    public CDCZDeviceInfoResponse(Integer code, String msg) {
        super(code, msg);
        this.body = new Body();
    }

    public static class Body implements Serializable {

        private String deviceSn;
        private String deviceTypeId;
        private String deviceTypeName;
        private Integer slotTotal;
        private Long placeId;
        private String placeName;
        private Integer state;
        private String stateName;
        private Boolean online;
        private Date createDate;

        private List<SlotItem> slotItems;

        public String getDeviceSn() {
            return deviceSn;
        }

        public void setDeviceSn(String deviceSn) {
            this.deviceSn = deviceSn;
        }

        public String getDeviceTypeId() {
            return deviceTypeId;
        }

        public void setDeviceTypeId(String deviceTypeId) {
            this.deviceTypeId = deviceTypeId;
        }

        public String getDeviceTypeName() {
            return deviceTypeName;
        }

        public void setDeviceTypeName(String deviceTypeName) {
            this.deviceTypeName = deviceTypeName;
        }

        public Integer getSlotTotal() {
            return slotTotal;
        }

        public void setSlotTotal(Integer slotTotal) {
            this.slotTotal = slotTotal;
        }

        public Long getPlaceId() {
            return placeId;
        }

        public void setPlaceId(Long placeId) {
            this.placeId = placeId;
        }

        public String getPlaceName() {
            return placeName;
        }

        public void setPlaceName(String placeName) {
            this.placeName = placeName;
        }

        public Integer getState() {
            return state;
        }

        public void setState(Integer state) {
            this.state = state;
        }

        public String getStateName() {
            return stateName;
        }

        public void setStateName(String stateName) {
            this.stateName = stateName;
        }

        public Boolean getOnline() {
            return online;
        }

        public void setOnline(Boolean online) {
            this.online = online;
        }

        public Date getCreateDate() {
            return createDate;
        }

        public void setCreateDate(Date createDate) {
            this.createDate = createDate;
        }

        public List<SlotItem> getSlotItems() {
            return slotItems;
        }

        public void setSlotItems(List<SlotItem> slotItems) {
            this.slotItems = slotItems;
        }
    }

    public static class SlotItem {

        private Integer slotNum;
        private Integer state;
        private String stateName;
        private Integer overloadState;
        private String overloadStateName;
        private Integer temperatureState;
        private String temperatureStateName;
        private Integer powerState;
        private String powerStateName;

        public Integer getSlotNum() {
            return slotNum;
        }

        public void setSlotNum(Integer slotNum) {
            this.slotNum = slotNum;
        }

        public Integer getState() {
            return state;
        }

        public void setState(Integer state) {
            this.state = state;
        }

        public String getStateName() {
            return stateName;
        }

        public void setStateName(String stateName) {
            this.stateName = stateName;
        }

        public Integer getOverloadState() {
            return overloadState;
        }

        public void setOverloadState(Integer overloadState) {
            this.overloadState = overloadState;
        }

        public String getOverloadStateName() {
            return overloadStateName;
        }

        public void setOverloadStateName(String overloadStateName) {
            this.overloadStateName = overloadStateName;
        }

        public Integer getTemperatureState() {
            return temperatureState;
        }

        public void setTemperatureState(Integer temperatureState) {
            this.temperatureState = temperatureState;
        }

        public String getTemperatureStateName() {
            return temperatureStateName;
        }

        public void setTemperatureStateName(String temperatureStateName) {
            this.temperatureStateName = temperatureStateName;
        }

        public Integer getPowerState() {
            return powerState;
        }

        public void setPowerState(Integer powerState) {
            this.powerState = powerState;
        }

        public String getPowerStateName() {
            return powerStateName;
        }

        public void setPowerStateName(String powerStateName) {
            this.powerStateName = powerStateName;
        }
    }
}

